package com.py.framework.entity;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * 流程走向中的表达式
 * 		目前只支持大于、等于、小于
 * @author lys
 *
 */
public class OutGoingCondition{
	
	public static final int CONDITION_EXPRESS_EQ = 0;
	
	public static final int CONDITION_EXPRESS_LG = -1;
	
	public static final int CONDITION_EXPRESS_RG = 1;
	
	private String paramName;
	
	private int paramExpress;
	
	private Object paramValue;
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
	
	/**
	 * @return the paramName
	 */
	public String getParamName() {
		return paramName;
	}

	/**
	 * @param paramName the paramName to set
	 */
	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	/**
	 * @return the paramExpress
	 */
	public int getParamExpress() {
		return paramExpress;
	}

	/**
	 * @param paramExpress the paramExpress to set
	 */
	public void setParamExpress(int paramExpress) {
		this.paramExpress = paramExpress;
	}

	/**
	 * @return the paramValue
	 */
	public Object getParamValue() {
		return paramValue;
	}

	/**
	 * @param paramValue the paramValue to set
	 */
	public void setParamValue(Object paramValue) {
		this.paramValue = paramValue;
	}
}